import request from '@/utils/request';

//获取用户列表
export async function getUsers(params){
  return request('/admin/users',{params})
}
//是否禁用用户
export async function lockUser(uid){
  return request.patch(`/admin/users/${uid}/lock`)
}
//添加用户
export async function addUser(data){
  return request.post('/admin/users',{data})
}
//更新用户
export async function updateUser(editId,data){
  return request.put(`/admin/users/${editId}`,{data})
}
//获取用户详情
export async function showUsers(editId){
  return request(`/admin/users/${editId}`)
}